package model

import "gorm.io/gorm"

type Course struct {
	gorm.Model
	UserId int     `gorm:"type:int;comment:用户id"`
	Title  string  `gorm:"type:varchar(255);comment:课程标题"`
	Intro  string  `gorm:"type:varchar(255);comment:课程简介"`
	Price  float64 `gorm:"type:float;comment:价格"`
	Status int     `gorm:"type:tinyint(1);comment:0草稿1待审核2已发布3已下架4审核驳回"`
	Reason string  `gorm:"type:varchar(255);comment:驳回原因"`
}
type Review struct {
	gorm.Model
	UserId int `gorm:"type:int;comment:<UNK>id"`
	Status int `gorm:"type:tinyint(1);comment:0草稿1待审核2已发布3已下架4审核驳回"`
}
